home *** CD-ROM | disk | FTP | other *** search
- <IMG "FTLLOGO.BMP">
-
- Welcome to the FTL 2.1 Demo!
-
- This file explains the features of the FTL 2.1 Hypertext/ Hypermedia components
-
- <IMG "DELLOGO.BMP"> <IMG "S_CIUPKC.BMP">
-
- for Borland Delphi from C.I.U.P.K.C. Software.
-
- <IMG "HLINE.BMP">
-
- TRegularExpressionParser Component
-
- This component handles the dirty work of parsing strings of text and
- finding and returning matches to regular expressions. It has the
- following interface declaration:
-
- TRegularExpressionParser = class( TComponent )
- private
- { Private declarations }
- FOnAssertGREPMatch : TGREPEvent;
- public
- { Public declarations }
- TheREPFile : TREPFile;
- TotalREPRecords : Integer;
- ActiveREPArray : TARArray;
- TotalActiveREPRecords : Integer;
- TheREPArray : TREPArray;
- CurrentActiveREPRecord : Integer;
- LeadString : String;
- MatchedString : String;
- AfterString : String;
- RecordMatched : Integer;
- FileOpen ,
- FileLoaded : Boolean;
- TheREPFileName : TFilename;
- TheREPArrayname : TFIleName;
- ActiveREPPosition : Integer;
- GlobalBOLN,
- GlobalEOLN : Boolean;
- TotalREPHits : Integer;
- TheHits : array[1..100] of integer;
- procedure MakeCurrentGREPRep( TheRecord , TheToken : Integer );
- procedure CreateFullGrepRep( TheRecord, TheToken : Integer;
- var TheRep : String; var StartSel, EndSel : Integer );
- function CIUPKC_158 : String;
- procedure Clear;
- constructor Create( AOwner : TComponent ); override;
- destructor Destroy; override;
- function OpenREPFile( NewFile : Boolean ) : Boolean;
- function ReadREPData : Boolean;
- procedure CloseREPFile;
- procedure SetTheREPFileName( Value : TfileName );
- function SetREPFile : Boolean;
- procedure SetActiveREPArray( Value1 : TARArray; Value2 : Integer );
- procedure GetActiveREPArray( var Value1 : TARArray; var Value2 : Integer );
- procedure InterActivelyCreateREPData;
- procedure InterActivelySetREPArrayData( ViewOK : Boolean );
- function GREPAllREPs( TargetString : String ) : boolean;
- function GREPCurrentREP( TargetString : String ) : boolean;
- function GREPNextREP( TargetString : String ) : boolean;
- function GetLeadString : String;
- procedure ParseTheBlastedGREPString( TheRecord : Integer;
- TheString : String );
- function GetMatchedString( StripDelimiters : Boolean ) : String;
- function GetAfterString : String;
- function GetMatchedRecord : Integer;
- function AssertGREPMatch( LeadString , MiddleString , LastString : String;
- RecordHit : Integer ) : Boolean;
- procedure SetCurrentActiveREPRecord( Value : Integer );
- function GetCurrentActiveREPRecord : Integer;
- function GREPTheString( TargetString : String;
- TheGREPRec : PTREPRecord;
- var LeadingText ,
- GREPedText ,
- TrailingText : String ) : Boolean;
- function GetActiveExpressions : TARArrayString;
- procedure SetActiveExpressions( Value : TARArrayString );
- function GetRegularExpressions : TREXPString;
- procedure SetRegularexpressions( Value : TREXPString );
- published
- { For the object inspector }
- property RegularExpressionFile : TFileName read TheREPFIlename
- write SetTheREPFilename;
- property TheActiveExpressions : TARArrayString read GetActiveExpressions
- write SetActiveExpressions;
- property TheRegularExpressions : TREXPString read GetRegularExpressions
- write SetRegularExpressions;
- property OnAssertGREPMatch : TGREPEvent read FOnAssertGREPMatch
- write FOnAssertGREPMatch;
- end;
-
-
- <IMG "WAVELINE.BMP">
-
- <A HREF="DEMO1.DHT">Click here</A> to return to the main demo file.
-
-